package com.roc.steelend.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.sun.org.apache.xpath.internal.operations.Or;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.time.Period;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "employee")
public class Employee implements Serializable {

    @TableId(type = IdType.INPUT)
    private Integer employeeId;
    private String  realName;
    private String position;
    private  Integer departmentId;
    private String sex;
    private BigDecimal wage;
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger phone;
    private String address;
    @TableField(value = "singup_time")
    private Date signupTime;
}
